c683b6841be01f492924bc85741f706979a9a176,ij/plugin/PluginInstaller.java,PluginInstaller,download,#URL#String#,93
Before Change
try {
URLConnection uc = url.openConnection();
int len = uc.getContentLength();
IJ.showStatus("Downloading "+url.getFile());
InputStream in = uc.getInputStream();
data = new byte[len];
int n = 0;
After Change
}
public static byte[] download(String urlString, String name) {
URL url = null;
try {
url = new URL(urlString);
} catch (Exception e) {
IJ.log(""+e);
}
if (url==null) return null;
byte[] data;
try {
URLConnection uc = url.openConnection();
int len = uc.getContentLength();
if (name!=null)
IJ.showStatus("Downloading "+url.getFile());
InputStream in = uc.getInputStream();
data = new byte[len];
int n = 0;